$(document).ready(function() {

    $('#loadingBtn').on('click', function() {
        var $btn = $(this);
        $btn.button('loading');


        //获取用户名
        //获取密码
        var data = {
            "username": $("#username").val(),
            "password": md5($("#password").val())
        }
        UserLogin(data, function(data) {
            $btn.button('reset');
            $.zui.store.remove("currentpage");
            window.location.href = base_ui_url + "view/main.html"

        }, function(error) {
            $btn.button('reset');
        });




    });
});